from django.contrib import admin

# Register your models here.
from tmp_news.models import LinesDetail, VoteItem, VoteGroup


class LinesDetailAdmin(admin.ModelAdmin):
    list_display = ('created', 'news_name', 'source_city')


class VoteAdmin(admin.ModelAdmin):
    list_display = ('title','created')

class VoteItemAdmin(admin.ModelAdmin):
    list_display = ('title', 'vote_count','created')


admin.site.register(LinesDetail, LinesDetailAdmin)
admin.site.register(VoteItem, VoteItemAdmin)
admin.site.register(VoteGroup, VoteAdmin)